var t, e = function(t) {
    return t && t.__esModule ? t : {
        default: t
    };
}(require("../../../utils/tools.js"));

getApp();

Page({
    data: {},
    onLoad: function(e) {
        t = this, this.data.id = e.id;
    },
    onReady: function() {
        var n = {
            action: "success",
            contr: "treasure",
            token: wx.getStorageSync("token"),
            id: t.data.id
        };
        e.default.request(n, function(e) {
            t.setData(e.info);
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    jumptreasure: function(t) {
        wx.redirectTo({
            url: "/bh_farm/pages/treasure/treasure"
        });
    },
    onShareAppMessage: function() {
        return {
            title: this.data.share.text,
            imageUrl: this.data.share.images,
            path: "bh_farm/pages/index/index?parent_id=" + this.data.share.member_id
        };
    }
});